package com.lk.mapper;

import com.lk.bean.Student;
import com.lk.request.LoginRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper {

    Student login(LoginRequest loginRequest);

    int updatePassWord(@Param("id") Integer id, @Param("password") String Password);

    int delete(Integer[] ids);

    Student findByName(String name);

    int addStudent(Student student);

    int updateStudent(Student student);

    List<Student> getStudentList(Student student);
}
